-
Notifications
You must be signed in to change notification settings - Fork 633
Toby cookbook-axes #172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toby cookbook-axes #172
Conversation
TODO: add tests in R code for things like font color. |
Test table for this branch is most tests are looking good except |
nice! should we just add the cookbook .R files all in one PR (so that we include them in our visual tests) and then do fixes on separate subsequent PRs? |
well I was thinking of proposing 1 PR per cookbook .R file, and adding fixes in the same PR along the way, so that master is always passing checks on travis. |
OK, cool, that makes sense! |
Hey @cpsievert I did git pull origin master from this branch, and I was expecting that travis would run and redo the test table, but it does not seem to be running. Any idea why? If you know how to fix it then go ahead and push to this branch. |
I think we just have to be patient. Travis is still building... |
It's up now -- http://ropensci.github.io/plotly-test-table/ |
awesome, but indeed there are some missing images in the current test table so I restarted the build via the travis web page like you suggested. however I anticipate this will be an issue for almost all future builds, for example there is one missing image in your new branch's test table From the plotly side it would be nice if @chriddyp could investigate and see why the plotly web site randomly returns an error when we ask for a png image. From the R side I will attempt to modify the plotly-test-table code so that it checks for missing images and attempt to re-download them. |
httr could help on the R side. Instead of these lines, you could do something like library(httr)
g <- GET(plotly.png.url, write_disk(plotly.png.file))
warn_for_status(g)
# if we want to stop the build, use stop_for_status() instead |
thanks for the suggestion, I will look into that. by the way after re-building the table it seems that the missing PNGs now are true negatives (the ggplotly function stops with an error for master, but works for this branch) |
|
Hey @tdhock and @cpsievert - what do you guys think about merging in all the cookbook |
I still think it makes more sense to do one cookbook .R file at a time, to avoid having the tests on master failing. but if you think it is better to avoid regressions I can do that (and maybe if we want to avoid having the Travis master test fail, we can just add the image tests to the table without adding any expect_ calls in R code). |
by the way I think we can merge this branch right away, here is the test table |
coord.lim <- p$coord$limits[[xy]] | ||
if(is.numeric(coord.lim)){ | ||
## TODO: maybe test for more exotic coord specification types | ||
## involving NA, Inf, etc? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you add this as a github issue so that we can keep track of it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added #184
other than my comments, looks good to me 👍 |
This branch translates some of Marianne's visual tests from the axes.R file in the add-r-cookbook-tests branch
https://github.com/ropensci/plotly/blob/add-r-cookbook-tests/tests/cookbook-test-suite/axes.R
to the format I need for adding them to the test table.